package com.mengxuegu.springcloud;/*
* @auther 顶风少年 
* @mail dfsn19970313@foxmail.com
* @date 2019-10-21 17:15
* @notify 
* @version 1.0
*/

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;

@EnableHystrix //开启 Hystrix 熔断机制的支持
@EnableEurekaClient //本服务启动后会自动注册进Eureka中心
@MapperScan("com.mengxuegu.springcloud.mapper")//扫描所有mapper接口
@SpringBootApplication
public class ProductProvider_8001_Hystrix {
    public static void main(String[] args) {
        SpringApplication.run(ProductProvider_8001_Hystrix.class, args);
    }
}
